Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Skaffold user-agent on update-checks and downloads #4964

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

briandealwis
Copy link
Member

Fixes: #4963
Related: #582, #1260, #2723

Description

  • Cause update check to use util.Download(), and cause util.Download() to use Skaffold user-agent.
  • Move HTTP related functions from util.go to new http.go
  • Add simple tests

User facing changes

  • Skaffold's update checks now use the Skaffold user-agent

- cause update check to use util.Download()
- cause util.Download() to use Skaffold user-agent
- move HTTP related functions from util.go to new http.go
- add simple tests
@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #4964 into master will increase coverage by 0.01%.
The diff coverage is 46.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4964      +/-   ##
==========================================
+ Coverage   72.28%   72.30%   +0.01%     
==========================================
  Files         360      361       +1     
  Lines       12595    12596       +1     
==========================================
+ Hits         9104     9107       +3     
+ Misses       2822     2818       -4     
- Partials      669      671       +2     
Impacted Files Coverage Δ
pkg/skaffold/update/update.go 45.45% <0.00%> (+6.99%) ⬆️
pkg/skaffold/util/util.go 83.33% <ø> (+0.93%) ⬆️
pkg/skaffold/util/http.go 50.00% <50.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96426d2...7ac13cf. Read the comment docs.

pkg/skaffold/util/http.go Show resolved Hide resolved
pkg/skaffold/util/http_test.go Show resolved Hide resolved
@briandealwis briandealwis merged commit 31b6212 into GoogleContainerTools:master Oct 28, 2020
@briandealwis briandealwis deleted the useragent branch October 28, 2020 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Skaffold version as user-agent
2 participants